import request from "@/utils/request";

// 员工工作模式
export const getWord = () => {
  return request({
    url: "/manager/work-patterns/all",
  });
};

// 排班列表
export const getArrange = (params) => {
  return request({
    url: "/manager/work-schedulings",
    params,
  });
};

// 搜索
export const getModel = (params) => {
  return request({
    url: "/manager/work-patterns/page",
    params,
  });
};

// 新增工作
export const addWorkUser = (data) => {
  return request({
    method: "post",
    url: "/manager/work-patterns",
    data,
  });
};

// 删除
export const deleteCount = (id) => {
  return request({
    url: `/manager/work-patterns/${id}`,
    method: "DELETE",
  });
};
